/*
 * @Descripttion: 
 * @version: 
 * @Author: wl
 * @Date: 2020-08-21 10:14:22
 * @LastEditors: wl
 * @LastEditTime: 2020-08-21 10:29:25
 */
import axios from '../axios';
// /admin/service/sys_employment_list
//后台社区再就业 列表
export const handleQuery = data => {
  return axios({
    url: '/admin/service/sys_employment_list',
    method: 'post',
    data
  });
};
//
export const handleSave = data => {
  return axios({
    url: '/admin/service/sys_employment_save',
    method: 'post',
    data
  });
};

//sys_employment_del
//社区再就业 删除

export const batchDeleteType = data => {
  return axios({
    url: '/admin/service/sys_employment_del',
    method: 'post',
    data
  });
};

//疑似迁出
export const suspected = data => {
  return axios({
    url: '/admin/service/sys_suspected_relocation',
    method: 'post',
    data
  });
};

// 已读
export const relocationread = data => {
  return axios({
    url: '/admin/service/suspected_relocation_read',
    method: 'post',
    data
  });
};
//迁出
export const relocationmove = data => {
  return axios({
    url: '/admin/service/suspected_relocation_move',
    method: 'post',
    data
  });
};

//嘉陵网格列表
export const jialing_wangge_list = data => {
  return axios({
    url: '/admin/service/jialing_wangge_list',
    method: 'post',
    data
  });
};
//嘉陵网格添加
export const jialing_wangge_add = data => {
  return axios({
    url: '/admin/service/jialing_wangge_add',
    method: 'post',
    data
  });
};

//获取部分数据列表（公用）
export const list_every = data => {
  return axios({
    url: '/admin/service/list_every',
    method: 'post',
    data
  });
};

//创建修改部分数据列表（公用）
export const add_every = data => {
  return axios({
    url: '/admin/service/add_every',
    method: 'post',
    data
  });
};

//物业公示
export const wuyegongshi_list = data => {
  return axios({
    url: '/admin/service/wuyegongshi_list',
    method: 'post',
    data
  });
};
//采集数据默认字段列表
export const dynamic_byte_list = data => {
  return axios({
    url: '/admin/service/dynamic_byte_list',
    method: 'post',
    data
  });
};
//采集数据表格列表
export const dynamic_table_list = data => {
  return axios({
    url: '/admin/service/dynamic_table_list',
    method: 'post',
    data
  });
};
//采集表格的字段列表
export const dynamic_form_byte = data => {
  return axios({
    url: '/admin/service/dynamic_form_byte',
    method: 'post',
    data
  });
};
//字段采集
export const sys_field_collection = data => {
  return axios({
    url: '/admin/service/sys_field_collection',
    method: 'post',
    data
  });
};

//采集列表
export const table_data_list = data => {
  return axios({
    url: '/admin/service/table_data_list',
    method: 'post',
    data
  });
};


export const table_data_field_update = data => {
  return axios({
    url: '/admin/service/table_data_field_update',
    method: 'post',
    data
  });
};

// 采集数据导出创建任务
export const collection_data_export = data => {
  return axios({
    url: '/admin/service/collection_data_export',
    method: 'post',
    data
  });
};
// 采集数据任务列表
export const collection_data_export_list = data => {
  return axios({
    url: '/admin/service/collection_data_export_list',
    method: 'post',
    data
  });
};
// 系统表单数据任务列表
export const sys_table_data_list = data => {
  return axios({
    url: '/admin/service/sys_table_data_list',
    method: 'post',
    data
  });
};
export const export_excel = id => {
  return axios({
    url: `/collectionDataExport/${id}`,
    method: 'get',
    responseType: 'blob'
  });
};
export const senseLink_open_door = (data) => {
  return axios({
      url: '/admin/service/senseLink_open_door',
      method: 'post',
      data
  })
}

